import java.util.Scanner;
public class Example13 {
    public static void main(String[] args){
        int password = 123456;
        int intput;
        Scanner scanner = new Scanner(System.in);
        do{
            System.out.println("请输入密码：");
            intput = scanner.nextInt();

        }while (intput != password);

        System.out.println("密码输入正确");

    }
}
